import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import GeminiScrollbar from 'vue-gemini-scrollbar'; //自定义滚动条
import {RouterMount} from 'uni-simple-router';
import router from './router'
import store from "./store/index.js";
import network from "./common/network.js"
import {partnerOnlineCloud,partnerOnlineDocAdminCloud} from "./common/config.js" //云服务空间
import elementResizeDetectorMaker from 'element-resize-detector' // 动态监听dom尺寸变化
import pligin from "./common/pligin.js"; // 自定义一些插件
Vue.config.productionTip = false

App.mpType = 'app'
Vue.use(ElementUI);
Vue.use(GeminiScrollbar);
Vue.use(pligin);

Vue.prototype.$network = network;
Vue.prototype.$elementResizeDetectorMaker = elementResizeDetectorMaker;
// 多个服务空间
Vue.prototype.$partnerOnlineCloud = partnerOnlineCloud;
Vue.prototype.$partnerOnlineDocAdminCloud = partnerOnlineDocAdminCloud;

const app = new Vue({
	store,
    ...App
})

//v1.3.5起 H5端 去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,'#app');
// #endif

// #ifndef H5
	app.$mount(); //兼容小程序及app端
// #endif
